const mutations = { // 通过 $store.commit 触发该对象函数, 更改 state 的状态
  syncAdd(state, payload) {
    console.log('syncAdd mutations', payload)
    state.age += payload.age;
  },
  asyncMinus(state, payload) {
    console.log('asyncMinus mutations', payload)
    state.age -= payload.age;
  }
}


export default mutations;